package Admin.service.impl;

import Admin.dao.AdminDao;
import Admin.dao.impl.AdminDaoImpl;
import Admin.entity.Admin;
import Admin.service.AdminService;

import java.util.List;

/**
 * @author chenle
 * @version 1.0
 * @date 2023/9/21 16:07
 */
public class AdminServiceImpl implements AdminService {
    AdminDao dao=new AdminDaoImpl();
    @Override
    public List<Admin> getlist() {
        return dao.getlist();
    }
    @Override
    public List<Admin> getLike(String name) {
        return dao.getLike(name);
    }

    @Override
    public int updateTop(Admin admin) {
        return dao.updateTop(admin);
    }

    @Override
    public int update(Admin admin) {
        return dao.update(admin);
    }

    @Override
    public int delete(Admin admin) {
        return dao.delete(admin);
    }

    @Override
    public int updatedalance(Admin admin) {
        return dao.updatedalance(admin);
    }

    @Override
    public double selectDalance() {
        return dao.selectDalance();
    }
}
